package com.crealth.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.crealth.model.CompanyModel;


public abstract interface CompanyMapper {
	
	public abstract List<CompanyModel> selectAllCompany();
	
	public abstract void insertBranch(CompanyModel company);
	
	public abstract CompanyModel selectCompanyByID(
			@Param("companyID")int companyID);
	
	public abstract List<CompanyModel> selectDepartmentByID(
			@Param("companyID")int companyID);
	
	public abstract List<Integer> selectDepartmentIDByID(
			@Param("companyID")int companyID);
	
	public abstract List<CompanyModel> selectSubCompanyByID(
			@Param("companyID")int companyID);
	
	public abstract Integer updateCompanyInfo(CompanyModel company);
	
	public abstract Integer deleteCompanyByID(
			@Param("companyID")int companyID);
	
    
}
